package com.boss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.freemarker.FreeMarkerAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;

//@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)
@SpringBootApplication(scanBasePackages = {"com.boss"}, exclude = {FreeMarkerAutoConfiguration.class})
@ServletComponentScan(basePackages = {"com.boss.filter"})
@EnableDiscoveryClient
@EnableAsync
public class SalaryApplication {

    public static void main(String[] args) {
        SpringApplication.run(SalaryApplication.class, args);
        System.out.println("工资信息服务启动成功");
    }

//    @Bean
//    public EmbeddedServletContainerFactory servletContainer() {
//        return new TomcatEmbeddedServletContainerFactory();
//    }
//    @Bean(name = "threadPoolTaskExecutor")
//    public Executor threadPoolTaskExecutor() {
//        return new ThreadPoolTaskExecutor();
//    }

}
